package thinking.java.initalization.and.clean.up.example;

/**
 * @author GaoFeng
 * @date 2020/1/2 18:40
 */
public class Ex_5_7_3_14 {

    public static void main(String[] args) {
        StaticStringTest.print();
    }

    static class StaticStringTest {

        // 静态2带的么苦荷减肥他属性都会正在被地阿jingixg1dshihu1
        // 勇
        static String name = "static string test";
        static String desc;

        static {
            desc = "static block will be init";
        }

        static void print() {
            System.out.println( "static block & static attr is initialization. name is " + name + "desc is " + desc);
        }

    }

}
